<%= form_for(@content) do |f| %>
  <% if @content.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@content.errors.count, "error") %> prohibited this content from being saved:</h2>

      <ul>
      <% @content.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :mime_type %><br />
    <%= f.text_field :mime_type %>
  </div>
  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :size %><br />
    <%= f.text_field :size %>
  </div>
  <div class="field">
    <%= f.label :user %><br />
    <% options = User.all(:order => "name").collect {|user| [user.name, user.id]} %>
    <%= select(:content, :user_id , options, :prompt => ">> Choose <<") %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
